package com.cykj.v_m_sprintboot.serviceImpl;

import com.cykj.v_m_sprintboot.bean.TbVmi;
import com.cykj.v_m_sprintboot.mapper.TbVmiMapper;
import com.cykj.v_m_sprintboot.service.TbVmiService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class TbVmiServiceImpl implements TbVmiService {
    @Autowired
    public TbVmiMapper tbVmiMapper;
    @Override
    public List<TbVmi> VM() {
        return tbVmiMapper.VM();
    }

    @Override
    public int count(int vmid) {
        return tbVmiMapper.count(vmid);
    }

    @Override
    public List<TbVmi> vmcx(String vmsite,String vmstate) {
        return tbVmiMapper.vmcx(vmstate,vmsite);
    }

    @Override
    public boolean sqvm(String time, String vmSite, String name, String Coordinate) {
        return tbVmiMapper.sqvm(time,vmSite,name);
    }

    @Override
    public boolean vmjy(int vmid) {
        return tbVmiMapper.vmjy(vmid);
    }

    @Override
    public boolean vmqy(int vmid) {
        return tbVmiMapper.vmqy(vmid);
    }

    @Override
    public List<TbVmi> coordinate() {
        return null;
    }
}
